<? session_start(); ?>
<html>

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<title>User Settings</title>
	<link rel="stylesheet" type="text/css" href="CSS/style.css" />
</head>


<body>
	<div id="header">
	<h1><strong>This Android Website of Testing Stuff</strong></h1>
		 	
		<?
	if($_SESSION['loggedIn'] == true) { ?>	

		<div class="usermenu">
			<br>
			<br>
			<a href="/usersettings.php">User Settings</a>
			<br>
			<a href="/logout.php">Logout</a>
		</div>
		

		<div id="user">
	<? echo''.$_SESSION['username'].''; ?>
		</div>
	<? } ?>
	</div>

	<div id="bottomcurve">
	</div>

	<div class="menubar">

		<div class="empty">
			<a href="index.php">
			<img src="empty.gif">
			</a>
		</div>

		<div class="menuhome">
			Home
		</div>	

		<? if ($_SESSION['loggedIn'] == true){ ?>

			<div class="empty2">
				<a href="speedpage.php">
				<img src="empty.gif">
				</a>
			</div>

			<div class="menulogin">
				Speed
			</div>
			
<? }else{ ?> 
			<div class="empty2">
				<a href="login.php">
				<img src="empty.gif">
				</a>
			</div>

			<div class="menulogin">
				Login
			</div>
		<? }?>	

		<div class="empty3">
			<a href="register.php">
			<img src="empty.gif">
			</a>
		</div>

		<div class="menuregister">
		Register
		</div>

		<div class="empty4">
			<a href="credits.php">
			<img src="empty.gif">
			</a>
		</div>

		<div class="menucredits">
		Credits
		</div>
	</div>

	<div id="changepassword">
		Change Password
	</div>
	<div class="changepasswordbox">
		Old Password: <input type="password" name="password"style="width:100px; margin-left:10px;">
		<br>
		<br>
		New Password: <input type="password" name="password"style="width:100px; margin-left:10px;">
		<br>
		<br>
		Re-Type New Password: <input type="password" name="password"style="width:100px; margin-left:10px;">
		<br>
		<br>
		<input type="submit" name="Submit" value="Change Password">
	</div>
</body>
</html>


